package com.study.zouchao.superproject.register.model;

import com.study.zouchao.superproject.base_zou.api_zou.Api_C;
import com.study.zouchao.superproject.login.model.entity.result.LoginResult;
import com.study.zouchao.superproject.util.RxSchedulers;
import com.study.zouchao.superproject.util.api.api.Api;

import java.util.Map;

import rx.Observable;

/**
 * Created by Administrator on 2017/6/24.
 */

public class RegisterModel {

    public Observable<RegisterResult> register(Map<String, String> params) {
        return Api.getInstance(Api_C.BASE_URL_LIN_BASE).mApiService
                .registerByPOST(params)
                .compose(RxSchedulers.<RegisterResult>io_main());
    }
}
